<?php
/**
 * GioCMS
 * 
 * LICENSE
 *
 * This source file is subject to the GNU GENERAL PUBLIC LICENSE Version 2 
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://www.gnu.org/licenses/gpl-2.0.txt
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@ninhgio.com so we can send you a copy immediately.
 * 
 * @copyright	Copyright (c) 2010 GioCMS (http://www.ninhgio.com)
 * @license		http://www.gnu.org/licenses/gpl-2.0.txt GNU GENERAL PUBLIC LICENSE Version 2
 *
 */

$this->headTitle($this->STRING->escape($this->article['title']) . ' - ' . $this->TRANSLATOR->translator('common_default_title', 'core'));
$this->headKeyword($this->metaKeyword);
$this->headMeta($this->metaDescription);
?>
<div class="ninhgio">
	<div class="pdb5">
		<h1 class="news-article-title"><?php echo $this->article['title']; ?></h1>
		<div class="news-article-content" id="pageContent" style="text-align: justify;">
			<?php echo $this->article['content']; ?>
		</div>
		<?php if (($web = Modules_News_Services_Web::getById($this->article['web_id'])) != null) : ?>
		<div class="author" style="text-align: right; font-style: italic; clear: both;">
			<a rel="nofollow" target="_blank" href="<?php echo $this->article['link_source']; ?>" title="Link gốc"><strong><?php echo $web['screen_name']; ?></strong></a>
		</div>
		<?php endif; ?>
	</div>
</div>

<script type="text/javascript">
$(document).ready(function() {
	$('#pageContent p, #pageContent span, #pageContent div, #pageContent font, #pageContent font').css('font-size', '')
		.css('font-family', '');
	$('#pageContent table').each(function() {
		var width = $(this).attr('width');
		var cssWidth = parseInt($(this).css('width'));
		if (cssWidth > 500 || width > 500 || width == '100%') {
			$(this).removeAttr('width').css('width', 'auto');
		}
	});

	var dateString = 'Cập nhật <?php echo date('d/m/Y H:i A', strtotime($this->article['created_date'])); ?> (GMT+7)';
	viewDate(dateString);
});
</script>